package cn.wizzer.app.web.modules.controllers.open;


import cn.wizzer.app.sys.modules.services.SysPayWayService;
import cn.wizzer.framework.util.Result;
import com.alibaba.dubbo.config.annotation.Reference;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;


/**
 * 支付方式及关联的银行
 */
@IocBean
@At("/open/payWay")
public class ApiPayWayController {
    @Inject
    @Reference
    private SysPayWayService payWayService;


    @At
    @Ok("json:full")
    public Result list(@Param("currencyId") String currencyId) {
        return Result.success(payWayService.list(currencyId));
    }
}
